#! /usr/bin/python
# FIlename: Find.py

import sys, os;

def find(path,filename):
	filelist = os.listdir(path);

	#print 'filelist: %s' % filelist;
#	print 'path: %s' % path;

	for file in filelist:
		f_name = path + os.sep + file;
		if filename == file:
			print f_name;
		if os.path.isdir(f_name):
			find(f_name, filename);


def usage():
	print 'Usage: ./Find.py file1 file2 file3 ...'

def main(argv):
	if argv == []:
		usage();
		sys.exit(1);
	for file in argv:
		find('.',file);

if __name__ == '__main__':
	main(sys.argv[1:]);
